package com.example.mountainwalker.service.impl;

import com.example.mountainwalker.entity.GroupTourInfo;
import com.example.mountainwalker.mapper.GroupTourMapper;
import com.example.mountainwalker.service.GroupTourService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GroupTourServiceImpl implements GroupTourService {
    @Autowired
    private GroupTourMapper groupTourMapper;

    @Override
    public List<GroupTourInfo> getGroupTourList() {
        return groupTourMapper.getGroupTourList();
    }

    @Override
    public GroupTourInfo getGroupTourById(Integer id) {
        return groupTourMapper.getGroupTourById(id);
    }

    @Override
    public int deleteGroupTourById(Integer id) {
        return groupTourMapper.deleteGroupTourById(id);
    }

    @Override
    public int addGroupTour(GroupTourInfo groupTourInfo) {
        return groupTourMapper.addGroupTour(groupTourInfo);
    }

    @Override
    public int updateGroupTour(GroupTourInfo groupTourInfo) {
        return groupTourMapper.updateGroupTour(groupTourInfo);
    }
}
